import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView/home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/LoginView/login.vue')
  },
  {
    path: '/category',
    name: 'category',
    component: () => import('../views/CategoryView/category.vue')
  },
  {
    path:'/navItem',
    name:"navItem",
    component: () => import('../views/NavXiangQing/NavItem.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
